package cn.stylefeng.guns.modular.business.frequency.siterelation.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 网点人员关联表
 *
 * @author yujie
 * @date 2023/05/10 16:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SiteRelationParam extends BaseParam {

    /**
     * 租户号
     */
    @NotNull(message = "租户号不能为空",groups = {edit.class})
    private Long id;

    /**
     * 乐观锁
     */
    @NotNull(message = "乐观锁不能为空",groups = {add.class,edit.class})
    private Integer delFlag;

    /**
     * 创建人
     */
    private Long createUser;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private Long updateUser;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 网点人员id
     */
    @NotNull(message = "网点人员id不能为空",groups = {add.class,edit.class})
    private Long userId;

    /**
     * 网点id
     */
    @NotNull(message = "网点id不能为空",groups = {add.class,edit.class})
    private Long siteId;

    /**
     * 网点提成id
     */
    @NotNull(message = "网点提成id不能为空",groups = {add.class,edit.class})
    private Long awardBaseId;

}
